
<h2><?php echo $title; ?></h2>
<div class="underline">&nbsp;</div>
<div id="inner-container">
    <?php echo isset($errors) ? '<span class="form-msg-error">'.$errors.'</span>' : '' ?>
    <?php echo validation_errors();?>
    <br/>
     <form class="form" action="<?php echo $form_url?>" method="post" accept-charset="utf-8">
         <fieldset>
            <legend>Cinema Information</legend>
            <div class="grid-6-12">
                <label class="form-lbl" for="name">Name <em class="form-req">*</em></label>
                <input class="form-txt" type="text" name="name" id="name" value="<?php echo set_value('name', isset($cinema) ? $cinema->name : '')?>" />
            </div>
            
            <div class="grid-3-12">
                <label class="form-lbl" for="capacity">Capacity <em class="form-req">*</em></label>
                <input class="form-txt" type="text" name="capacity" id="capacity" value="<?php echo set_value('capacity', isset($cinema) ? $cinema->capacity : '')?>" />   
            </div>
            
            
            <div class="grid-3-12">
                <label class="form-lbl" for="branch_id">Branch <em class="form-req">*</em></label>
                <select name="branch_id" id="branch_id">
                    <?php foreach ($branchs as $key => $branch) :?>
                        <option value="<?php echo $branch->id?>" <?php echo set_select('branch_id', $branch->id, isset($cinema) ? ($branch->id == $cinema->branch_id) : FALSE)?>><?php echo $branch->name?></option>
                    <?php endforeach;?>
                </select>
            </div>
            
            
            
            
            <div class="grid-12-12 form-no-lbl">
                <input class="form-button form-right" type="submit" name="submit" value="submit" id="submit" />
            </div>
            
        </fieldset>
        
    </form>
</div>
